/**
	author : sailing
	date : 2016-10-21
	fun: button
***/

<style lang="less">
	.vx-panel-foter{
      height:40px;
      width:100%;
      border-top:1px solid #ccc;
      position:relative;

      .line-bnt{
        float:right;
        padding-top:8px;
        padding-right:20px;
      }
	}
</style>

<template>
	<div class="vx-panel-foter" v-bind:style="{background:bg}">
	    <div class="line-bnt"> 
        <el-button :plain="true" @click="cancelBnt()" size="small" >取消</el-button>
        <el-button type="info" @click="submitBnt()" size="small">提交</el-button>
      </div>
	</div>
</template>

<script>
export default {
  methods: {
    submitBnt (e, id) {
      this.$parent.submitBnt()
    },

    cancelBnt () {
      this.$parent.cancelBnt()
    }
  },
  props: {
    bg: String,
    text: String
  },
  components: {}
}
</script>